<template>
  <div>
    <web-view v-if="src" :src="src" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      src: ''
    }
  },
  onShow() {
    const { url } = this.$root.$mp.query
    if (!url) {
      this.$toast('地址不存在')
      wx.navigateBack()
      return
    }
    this.src = decodeURIComponent(url)
  }
}
</script>

<style>
</style>
